package threadDemo;

import java.util.concurrent.TimeUnit;

public class Go {

    public static void main(String[] args) {

        new Thread(){
            @Override
            public void run() {
                System.out.println("子线程启动");
            }
        }.start();
        System.out.println("主线程");
    }

    private static void sleep() {
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
